package com.ruoyi.spot.realtime.orderbook.service;

import java.util.List;
import com.ruoyi.spot.realtime.orderbook.domain.SpotOrderbookRealtimeData;
import com.ruoyi.spot.realtime.orderbook.domain.VO.SpotOrderbookRealtimeDataVO;

/**
 * 实时订单簿Service接口
 * 
 * @author saumell
 * @date 2024-08-02
 */
public interface ISpotOrderbookRealtimeDataService 
{
    /**
     * 查询实时订单簿
     * 
     * @param id 实时订单簿主键
     * @return 实时订单簿
     */
    public SpotOrderbookRealtimeDataVO selectSpotOrderbookRealtimeDataById(Integer id);

    /**
     * 查询实时订单簿列表
     * 
     * @param spotOrderbookRealtimeData 实时订单簿
     * @return 实时订单簿集合
     */
    public List<SpotOrderbookRealtimeDataVO> selectSpotOrderbookRealtimeDataList(SpotOrderbookRealtimeDataVO spotOrderbookRealtimeData);

    /**
     * 新增实时订单簿
     * 
     * @param spotOrderbookRealtimeData 实时订单簿
     * @return 结果
     */
    public int insertSpotOrderbookRealtimeData(SpotOrderbookRealtimeData spotOrderbookRealtimeData);

    /**
     * 修改实时订单簿
     * 
     * @param spotOrderbookRealtimeData 实时订单簿
     * @return 结果
     */
    public int updateSpotOrderbookRealtimeData(SpotOrderbookRealtimeData spotOrderbookRealtimeData);

    /**
     * 批量删除实时订单簿
     * 
     * @param ids 需要删除的实时订单簿主键集合
     * @return 结果
     */
    public int deleteSpotOrderbookRealtimeDataByIds(Integer[] ids);

    /**
     * 删除实时订单簿信息
     * 
     * @param id 实时订单簿主键
     * @return 结果
     */
    public int deleteSpotOrderbookRealtimeDataById(Integer id);

    List<SpotOrderbookRealtimeDataVO> selectSpotAllData();

    Integer queryCurryNumber(String currencyPair);
}
